<template>
  <ThemeConfigProvider :theme="theme">
    <a-button type="text" size="small" :icon="iconWorkbench" @click="onCLick">工作台</a-button>
  </ThemeConfigProvider>
</template>

<script setup lang="ts">
import { iconifyToAntdvIconVNode } from '@ykst/shared';
import ThemeConfigProvider, { type ThemeProps } from '@/components/AntdVue/ThemeConfigProvider.vue';
import { useAppFeedback } from '@/hooks/feedback/useAppFeedback';

const { modal } = useAppFeedback();
defineProps<ThemeProps>();

const iconWorkbench = iconifyToAntdvIconVNode('i-tdesign:jump');

const onCLick = () => {
  modal.warning({
    title: '还未开发',
  });
};
</script>

<style scoped></style>
